package com.szt.mobile.inventory.common.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Keep;

/**
 * Created by yanzhaodi on 2017/11/16.
 */
@Entity(nameInDb = "t_assets")
public class Assets extends BaseEntity {

    @Id
    public Long _id;

    public String ASSET_ID;

    // 资产id
    public String aUTOID;

    // RFID
    public String asset70;

    public String asset90;

    // 型号
    public String strasset150="";

    // 机柜
    public String strasset250="";

    // U位
    public int asset700;

    public String asset240 = "";

    public String asset250 = "";

    public String RESULT_TYPE;

    // 盘点状态，1， 未盘， 3，已盘， 5， 盘盈
    public Integer status = 1;

    public Long assetsListId;


    @Keep
    public Assets(Long _id, String ASSET_ID, String aUTOID, String asset70,
            String asset90, String strasset150, String strasset250,
            int asset700, String asset240, String asset250, String RESULT_TYPE,
            Integer status, Long assetsListId) {
        this._id = _id;
        this.ASSET_ID = ASSET_ID;
        this.aUTOID = aUTOID;
        this.asset70 = asset70;
        this.asset90 = asset90;
        this.strasset150 = strasset150;
        this.strasset250 = strasset250;
        this.asset700 = asset700;
        this.asset240 = asset240;
        this.asset250 = asset250;
        this.RESULT_TYPE = RESULT_TYPE;
        this.status = status;
        this.assetsListId = assetsListId;
    }

    @Generated(hash = 1373698660)
    public Assets() {
    }


    @Override
    public boolean equals(Object o) {
        return o instanceof Assets && ((Assets) o).asset70.equals(asset70);
    }

    @Override
    public int hashCode() {
        return asset70.hashCode();
    }

    public Long getAssetsListId() {
        return this.assetsListId;
    }

    public void setAssetsListId(Long assetsListId) {
        this.assetsListId = assetsListId;
    }

    public Integer getStatus() {
        return this.status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRESULT_TYPE() {
        return this.RESULT_TYPE;
    }

    public void setRESULT_TYPE(String RESULT_TYPE) {
        this.RESULT_TYPE = RESULT_TYPE;
    }

    public String getAsset250() {
        return this.asset250;
    }

    public void setAsset250(String asset250) {
        this.asset250 = asset250;
    }

    public String getAsset240() {
        return this.asset240;
    }

    public void setAsset240(String asset240) {
        this.asset240 = asset240;
    }

    public int getAsset700() {
        return this.asset700;
    }

    public void setAsset700(int asset700) {
        this.asset700 = asset700;
    }

    public String getStrasset250() {
        return this.strasset250;
    }

    public void setStrasset250(String strasset250) {
        this.strasset250 = strasset250;
    }

    public String getStrasset150() {
        return this.strasset150;
    }

    public void setStrasset150(String strasset150) {
        this.strasset150 = strasset150;
    }

    public String getAsset90() {
        return this.asset90;
    }

    public void setAsset90(String asset90) {
        this.asset90 = asset90;
    }

    public String getAsset70() {
        return this.asset70;
    }

    public void setAsset70(String asset70) {
        this.asset70 = asset70;
    }

    public String getAUTOID() {
        return this.aUTOID;
    }

    public void setAUTOID(String aUTOID) {
        this.aUTOID = aUTOID;
    }

    public String getASSET_ID() {
        return this.ASSET_ID;
    }

    public void setASSET_ID(String ASSET_ID) {
        this.ASSET_ID = ASSET_ID;
    }

    public Long get_id() {
        return this._id;
    }

    public void set_id(Long _id) {
        this._id = _id;
    }
}
